
//  UserModel.m
//  乡易秀商户端
//
//  Created by delicious on 17/9/8.
//  Copyright © 2017年 chen. All rights reserved.
//

#import "UserModel.h"
#import <MJExtension/MJExtension.h>
#import "UserInfoManager.h"
@implementation UserModel

MJCodingImplementation
-(void)getAttributeWithDictionary:(NSDictionary *)dic
{
    
}

+(void)onPOSTURL:(NSString*)URL Param:(id)Param successBlock:(successBlock)successBlcok
        falieBlock:(failedBlock)failedBlcok
        errorBlock:(errorBlock)errorBlcok
{
    [NetENGINE POST:URL param:Param read:NO cache:NO Title:@"data" parseClass:[UserInfoManager class] successBlock:^(UserInfoManager * data) {
        
        NSMutableDictionary *dic =[data mj_keyValues];
        
        [UserInfoManager configInfo:dic];
        
        if (successBlcok) {
            successBlcok(data);
        }
        
    } falieBlock:failedBlcok errorBlock:errorBlcok];
}

+(void)onPOSTNoToKen:(NSString*)URL Param:(id)Param Title:(NSString *)title successBlock:(successBlock)successBlcok
          falieBlock:(failedBlock)failedBlcok
          errorBlock:(errorBlock)errorBlcok{
    [NetENGINE POST:URL param:Param read:NO cache:NO Title:title parseClass:[UserInfoManager class] successBlock:^(UserInfoManager * data) {
        
        NSMutableDictionary *dic =[data mj_keyValues];
        
        [UserInfoManager configInfo:dic];
        
        if (successBlcok) {
            successBlcok(@"成功");
        }
        
    } falieBlock:failedBlcok errorBlock:errorBlcok];
}

@end

